package com.airlenet.codetoword;

/**
 * 代码文件实体类
 */
public class CodeFile {
    private String fileName;
    private String filePath;
    private String relativePath;
    private String content;
    private String fileType;
    private int lineCount;
    
    public CodeFile(String fileName, String filePath, String relativePath, String content, String fileType, int lineCount) {
        this.fileName = fileName;
        this.filePath = filePath;
        this.relativePath = relativePath;
        this.content = content;
        this.fileType = fileType;
        this.lineCount = lineCount;
    }
    
    // Getters and Setters
    public String getFileName() {
        return fileName;
    }
    
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    
    public String getFilePath() {
        return filePath;
    }
    
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public String getFileType() {
        return fileType;
    }
    
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }
    
    public String getRelativePath() {
        return relativePath;
    }
    
    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }
    
    public int getLineCount() {
        return lineCount;
    }
    
    public void setLineCount(int lineCount) {
        this.lineCount = lineCount;
    }
    
    @Override
    public String toString() {
        return "CodeFile{" +
                "fileName='" + fileName + '\'' +
                ", filePath='" + filePath + '\'' +
                ", relativePath='" + relativePath + '\'' +
                ", fileType='" + fileType + '\'' +
                ", lineCount=" + lineCount +
                ", contentLength=" + (content != null ? content.length() : 0) +
                '}';
    }
}